package com.github.weixin.demo.persistence.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import com.github.weixin.demo.persistence.entity.DeviceEventEntity;



public interface DeviceEventDao extends CrudRepository<DeviceEventEntity, Long>{
	
	@Query("select u from DeviceEventEntity u where u.device_id=:id")
	DeviceEventEntity findByDeviceId(@Param("id") String deviceid);
}
